/**
 * 造一个车
 */
public class MakeCar {
    public static void main(String[] args) {
        Car car = new Car(20);
        car.init();
    }

    /**
     * 车类
     */
    static class Car {
        private Framework framework;
        public Car(int size){
            framework = new Framework(size);
        }
        public void init() {
            framework.init();
        }
    }

    /**
     * 车身类
     */
    static class Framework {
        private Bottom bottom;
        public Framework(int size){
            bottom = new Bottom(size);
        }
        public void init() {
            bottom.init();
        }
    }

    /**
     * 地盘类
     */
    static class Bottom {
        private Tire tire;
        public Bottom(int size){
            tire = new Tire(size);
        }
        public void init() {
            tire.init();
        }
    }

    /**
     * 轮胎类
     */
    static class Tire {
        private int size;
        public Tire(int size){
            this.size = size;
        }
        public void init() {
            System.out.println("轮胎尺寸: " + size);
        }
    }
}
